private["_stage"];
_stage = format["Initialising: %1", _this];
player createDiaryRecord ["msoPage", ["Initialisation", 
	_stage
]]; 
if (!hasInterface) then {
	diag_log ["MSO-%1 %2",time, _stage];
};

if (mso_core_show_initialisations <= 0) then {
	titleText [_stage, "BLACK FADED"];
};

if ((!isServer) || (!isdedicated)) then {
	if  (_this == "Completed") then {
		player setVariable ["mso_initcomplete", 1, false];
	};
};

if ((isServer) || (isdedicated)) then {
	if  (_this == "Completed") then {
		missionNameSpace setVariable ["server_initcomplete", 1];
		if !(isNil "persistentDBHeader") then {
            
            if (persistentDBHeader == 0) then {
				[] execVM "tmf\core\scripts\persistentDB\lobby_onConnected.sqf";                 
            };
		};
	};
};
